import random

# 定义常见姓氏和名字列表
surnames = ["赵", "钱", "孙", "李", "周", "吴", "郑", "王", "冯", "陈", "褚", "卫"]
male_names = ["伟", "强", "磊", "洋", "勇", "军", "杰", "峰", "刚", "平"]
female_names = ["芳", "娜", "敏", "静", "丽", "娟", "秀", "霞", "英", "丹"]

def common_name_game():
    print("欢迎来到常见人名取名游戏！")
    gender = input("请选择性别（男/女）：")
    surname = random.choice(surnames)
    if gender == "男":
        given_name = random.choice(male_names)
    elif gender == "女":
        given_name = random.choice(female_names)
    else:
        print("输入的性别无效，请输入 '男' 或 '女'。")
        return
    full_name = surname + given_name
    print(f"为你随机生成的名字是：{full_name}")

if __name__ == "__main__":
    common_name_game()